// phc: for phaser configuration
// phs: for phaser scene
// phctext: for phaser text object with some default styling
// phcon: for phaser container
// phimg: for phaser image

export default class MenuScene extends Phaser.Scene {
     constructor() {
        super('menuScene');
      }

      create() {
        const senceFontDynimac = this.add.text(50, 10, '场景1: 跳动字体', { 
            fontSize: '12px', 
            fill: 'whitesmoke' 
        }).setOrigin(0.5);
        senceFontDynimac.setInteractive();
        senceFontDynimac.on('pointerdown', () => {
            this.scene.start('demoScene');
        });


        const senceFontStatic = this.add.text(50, 30, '场景2: 不动字体', { 
            fontSize: '12px', 
            fill: 'whitesmoke' 
        }).setOrigin(0.5);

        senceFontStatic.setInteractive();
        senceFontStatic.on('pointerdown', () => {
            this.scene.start('mainScene');
        });


        const officialGameScene = this.add.text(50, 50, '场景3: 游戏测试', { 
        fontSize: '12px', 
        fill: 'whitesmoke', 
    }).setOrigin(0.5);
        officialGameScene.setInteractive();
        officialGameScene.on('pointerdown', () => {
            this.scene.start('demoJumpScene');
        });


        const listV = this.add.text(50, 70, '场景4: 数据列表', { 
        fontSize: '12px', 
        fill: 'whitesmoke', 
    }).setOrigin(0.5);
        listV.setInteractive();
        listV.on('pointerdown', () => {
            this.scene.start('listViewScene');
        });

        const etdObj = this.add.text(50, 90, '场景5: 继承动画', { 
        fontSize: '12px', 
        fill: 'whitesmoke', 
    }).setOrigin(0.5);
        etdObj.setInteractive();
        etdObj.on('pointerdown', () => {
            this.scene.start('extendsOfficialScene');
        });
        

        const carmeaScene = this.add.text(50, 110, '场景6: (照相机)', { 
        fontSize: '12px', 
        fill: 'whitesmoke', 
    }).setOrigin(0.5);
        carmeaScene.setInteractive();
        carmeaScene.on('pointerdown', () => {
            this.scene.start('cameraScene');
        });

        const containerScene = this.add.text(50, 130, '场景7: 对象容器', { 
        fontSize: '12px', 
        fill: 'whitesmoke', 
    }).setOrigin(0.5);
        containerScene.setInteractive();
        containerScene.on('pointerdown', () => {
            this.scene.start('containerScene');
        });


         const groupScene = this.add.text(50, 150, '场景8:  对象组', { 
        fontSize: '12px', 
        fill: 'whitesmoke', 
    }).setOrigin(0.5);
        groupScene.setInteractive();
        groupScene.on('pointerdown', () => {
            this.scene.start('groupScene');
        });


        const mutCameraScene = this.add.text(50, 170, '场景9: (多相机)', { 
        fontSize: '12px', 
        fill: 'whitesmoke', 
    }).setOrigin(0.5);
        mutCameraScene.setInteractive();
        mutCameraScene.on('pointerdown', () => {
            this.scene.start('mutCameraScene');
        });
    }
}